package com.aos;

public class NodeInfo {
	private int ID;
	private String address;
	private int port;
	
	
	public NodeInfo(String nodeInfo)
	{
		String[] arr = nodeInfo.split(" ");
		this.ID = Integer.parseInt(arr[0]);
		this.address = arr[1];
		this.port = Integer.parseInt(arr[2]);
	}
	
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
	public String toString()
	{
		return ID+" "+address+" "+port;
	}
}
